import { FC, CSSProperties } from 'react';
import Image from '@/components/Image';
import styles from './style.less';
import titleLeft from '@/assets/qyhx/sentiment/title_icon_left.png';
import titleRight from '@/assets/qyhx/sentiment/title_icon_right.png';
interface Iprops {
  title: string;
  style?: CSSProperties;
}
const InlineTitle: FC<Iprops> = (props) => {
  const { title, style } = props;
  return (
    <div className={styles.chart_title} style={{ ...style }}>
      <Image src={titleLeft} />
      <span>{title}</span>
      <Image src={titleRight} />
    </div>
  );
};
export default InlineTitle;
